package com.think.teaching.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 直播课章节
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public class LivingLesson extends BaseModel<LivingLesson> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课时序号
     */
    private Integer lessonIndex;

    /**
     * 课时名称
     */
    private String lessonName;

    /**
     * 老师
     */
    private Integer teacher;

    /**
     * 章节id
     */
    private Integer chapterId;

    /**
     * 课时简介
     */
    private String description;

    /**
     * 直播开始时间
     */
    private Timestamp startTime;

    /**
     * 直播结束时间
     */
    private Timestamp endTime;

   

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLessonIndex() {
        return lessonIndex;
    }

    public void setLessonIndex(Integer lessonIndex) {
        this.lessonIndex = lessonIndex;
    }

    public String getLessonName() {
        return lessonName;
    }

    public void setLessonName(String lessonName) {
        this.lessonName = lessonName;
    }

    public Integer getTeacher() {
        return teacher;
    }

    public void setTeacher(Integer teacher) {
        this.teacher = teacher;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LivingLesson{" +
        "id=" + id +
        ", lessonIndex=" + lessonIndex +
        ", lessonName=" + lessonName +
        ", teacher=" + teacher +
        ", chapterId=" + chapterId +
        ", description=" + description +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", delflag=" + delflag +
        ", state=" + state +
        "}";
    }
}
